package com.cly.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 岗位表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "岗位表")
public class Job extends BaseEntity implements Serializable {
    /**
     * 序列化字段
     */
    @Serial
    private static final long serialVersionUID = 5645138650189273367L;
    /**
     * id
     */
    @Schema(description = "主键")
    @TableId
    private Long id;
    /**
     * 岗位名称
     */
    @Schema(description = "岗位名称")
    private String name;
    /**
     * HR
     */
    @Schema(description = "HR")
    private Long userId;
    /**
     * 岗位描述
     */
    @Schema(description = "岗位描述")
    private String description;
    /**
     * 工作周期
     */
    @Schema(description = "工作周期")
    private String jobTime;
    /**
     * 学历要求(0中专及以下,1大专,2本科,3研究生及以上)
     */
    @Schema(description = "学历要求(0中专及以下,1大专,2本科,3研究生及以上)")
    private Integer education;
    /**
     * 最低底薪
     */
    @Schema(description = "最低底薪")
    private Integer minSalary;
    /**
     * 最高底薪
     */
    @Schema(description = "最高底薪")
    private Integer maxSalary;
    /**
     * 招聘类型(0全职,1兼职,2实习)
     */
    @Schema(description = "招聘类型(0全职,1兼职,2实习)")
    private Integer type;
    /**
     * 科目ID
     */
    @Schema(description = "科目ID")
    private Long subjectId;
}